package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.IChangeInfo
import fhp.hlhj.giantfold.javaBean.ChangeInfoBean
import fhp.hlhj.giantfold.module.ChangeUserInfoModule

/**
 * author: FHP
 * data: on 2018\1\19 0019 11:03
 * E-Mail: 103945089@qq.com
 */
class ChangeInfoPresenter(private val iChangeInfo: IChangeInfo) : ChangeUserInfoModule.ChangeInfoListener {
    override fun showLoading() {
        iChangeInfo.showLoading()
    }

    override fun onChangeListener(changeInfoBean: ChangeInfoBean) {
        iChangeInfo.changeInfo(changeInfoBean)
    }
    private val module=ChangeUserInfoModule()

    fun changeInfo(params: HttpParams){
        module.changeInfo(params,this)
    }
}